FROM golang:alpine

ENV GO111MODULE=on \
    CGO_ENABLE=0 \
    GOOS=linux \
    GOARCH=amd64 \
    GOPROXY="https://goproxy.cn,direct"

WORKDIR /
COPY ./main.go ./models/* ./tools/*  ./app/

EXPOSE 9090
RUN chmod 777 ./app
CMD ["/app"]